package com.jdd.modules.parkcar.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 月租车导入
 * @Author: liushengnan
 * @Date:   2021-03-06
 * @Version: V1.0
 */
@Data
@TableName("park_white_list")
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value="park_white_list对象", description="白名单")

public class MonthlyRentalCarInfo {
    /**主键*/
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
    /**车牌号*/
    @Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    private String plateNo;

    /**起始时间*/
    @Excel(name = "起始时间（如：2021-03-09）", width = 20, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "起始时间")
    private Date startTime;
    /**过期时间*/
    @Excel(name = "过期时间（如：2021-03-09）", width = 20, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "过期时间")
    private Date endTime;
    /**客户姓名*/
    @Excel(name = "客户姓名", width = 15)
    @ApiModelProperty(value = "客户姓名")
    private String userName;
    /**客户手机号码*/
    @Excel(name = "客户手机号码", width = 15)
    @ApiModelProperty(value = "客户手机号码")
    private String mobile;

    /**停车场位编号*/
    @Excel(name = "停车场位编号", width = 15)
    @ApiModelProperty(value = "停车场位编号")
    private String parkNumber;

    /**家庭住址*/
    @Excel(name = "家庭住址", width = 15)
    @ApiModelProperty(value = "家庭住址")
    private String address;

    /**车辆备注*/
    @Excel(name = "车辆备注", width = 15)
    @ApiModelProperty(value = "车辆备注")
    private String remark;
}
